<template>
  <el-dialog
    top="30px"
    width="80%"
    append-to-body
    :visible.sync="visible"
    :close-on-click-modal="false"
    :before-close="beforeClose"
  >
    <postloan-file-base
      :visible="visible"
      :related-data="relatedData"
      v-bind="$attrs"
    ></postloan-file-base>
  </el-dialog>
</template>

<script>
import PostloanFileBase from '@/bigcredit/views/accept/approval/ViewBase'

export default {
  components: {
    PostloanFileBase,
  },
  props: {
    visible: Boolean,
    relatedData: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.active = 'first'
      this.$emit('update:visible', false)
    },
  },
}
</script>

<style lang="scss" scoped></style>
